package com.hjqjl.module_home.ui.custom;

import android.content.Context;
import android.content.Intent;

import com.hjqjl.module_home.databinding.HomeActivityNodeprogressBinding;
import com.hjqjl.module_home.widget.NodeProgressBar;
import com.hjqjl.whapplib.base.BaseActivity;

public class NodeProgressActivity extends BaseActivity<HomeActivityNodeprogressBinding> {
    public static void start(Context context) {
        Intent intent = new Intent(context, NodeProgressActivity.class);
        context.startActivity(intent);
    }

    @Override
    public void initData() {
        setTitle("自定义NodeProgress");
    }

    @Override
    public void initListener() {
        pVBinding.homePorBarNodeprogress.setOnNodeProgressBarListener(new NodeProgressBar.onNodeProgressBarListener() {
            @Override
            public void getCurrentNodeAndMoney(int currentNode, int currentMoney) {
                pVBinding.homeTvNodeprogressShow.setText("currentNode" + currentNode + "---currentMoney" + currentMoney);
            }
        });
    }
}
